package com.alibaba.dubbo.demo.provider;

import java.util.List;

import com.alibaba.dubbo.demo.SysDeptInfoInterface;
import com.alibaba.dubbo.demo.bean.PageBean;
import com.alibaba.dubbo.demo.bean.SysDeptInfo;
import com.alibaba.dubbo.demo.provider.dao.impl.SysDeptInfoDaoImpl;
//com.alibaba.dubbo.demo.provider.SysDeptInfoServiceImpl
public class SysDeptInfoServiceImpl implements SysDeptInfoInterface {
	
	SysDeptInfoDaoImpl sysDeptInfoDao;
	public SysDeptInfoDaoImpl getSysDeptInfoDao() {
		return sysDeptInfoDao;
	}

	public void setSysDeptInfoDao(SysDeptInfoDaoImpl sysDeptInfoDao) {
		this.sysDeptInfoDao = sysDeptInfoDao;
	}

	@Override
	public PageBean queryAllDeptInfo(PageBean pageBean,boolean all) {
		// TODO Auto-generated method stub
		return sysDeptInfoDao.queryAllDeptInfo( pageBean,all);
	}

	@Override
	public List<SysDeptInfo> queryAllDeptInfoList(boolean all) {
		// TODO Auto-generated method stub
		return sysDeptInfoDao.queryAllDeptInfoList(all);
	}

	@Override
	public PageBean queryDeptInfoByUpperDept(boolean all,int deptid) {
		// TODO Auto-generated method stub
		return sysDeptInfoDao.queryDeptInfoByUpperDept(all, deptid);
	}

	@Override
	public List<SysDeptInfo> queryDeptInfoListByUpperDept(boolean all,int deptid) {
		// TODO Auto-generated method stub
		return sysDeptInfoDao.queryDeptInfoListByUpperDept(all, deptid);
	}

	@Override
	public PageBean queryDeptInfoByDept(int deptid) {
		// TODO Auto-generated method stub
		return sysDeptInfoDao.queryDeptInfoByDept( deptid);
	}

	@Override
	public List<SysDeptInfo> queryDeptInfoListByDept(int deptid) {
		// TODO Auto-generated method stub
		return sysDeptInfoDao.queryDeptInfoListByDept( deptid);
	}

	@Override
	public boolean saveDeptInfo(SysDeptInfo deptInfo) {
		// TODO Auto-generated method stub
		return sysDeptInfoDao.saveDeptInfo( deptInfo);
	}

	@Override
	public boolean updateDeptInfo(SysDeptInfo deptInfo) {
		// TODO Auto-generated method stub
		return sysDeptInfoDao.updateDeptInfo( deptInfo);
	}

	@Override
	public boolean deleteDeptInfo(SysDeptInfo deptInfo) {
		// TODO Auto-generated method stub
		return sysDeptInfoDao.deleteDeptInfo( deptInfo);
	}

	@Override
	public SysDeptInfo queryOneDeptInfoByDept(int deptid) {
		// TODO Auto-generated method stub
		return sysDeptInfoDao.queryOneDeptInfoByDept(deptid);
	}

	@Override
	public List<SysDeptInfo> queryDeptTree(boolean all,int deptid,String deptName) {
		// TODO Auto-generated method stub
		return sysDeptInfoDao.queryDeptTree(all,deptid,deptName);
	}
}
